<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar2">基本信息</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>平台名称：</td>
		<td colspan="3"><input id="zh_title" name="proposal/zh_title"
			label="平台名称" type="text" required
			class="input_css required maxlength:100" style="width: 725px;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td width="135" align="right"><span class="color_red">*</span>平台所在地点：</td>
		<td colspan="3"><input name="proposal/address" label="平台所在地点"
			type="text" required class="input_css required maxlength:100"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>平台认定时间：</td>
		<td><c:set var="hold_date">
				<x:out select="$xmlData/data/proposal/hold_date" />
			</c:set> <cpt:date id="hold_date" name="proposal/hold_date"
				value="${hold_date}" className=" required date" label="平台认定时间"></cpt:date>
		</td>
		<td align="right" nowrap><span class="color_red">*</span>认定部门：</td>
		<td><input name="proposal/department" label="认定部门" type="text"
			required class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/department" />" /></td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>平台类别：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="research" label="综合类"
				value="01" /><span style="vertical-align: middle;">综合类</span></label> <label>
				<input type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="research" label="专业类"
				value="02" /><span style="vertical-align: middle;">专业类</span>
		</label> <label> <input type="radio" class="do " id="advant_03"
				style="vertical-align: middle;" name="research" label="行业类"
				value="03" /><span style="vertical-align: middle;">行业类</span></label> <input
			type="hidden" name="proposal/research_value" id="research_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/research_value" />"
			label="平台类别" /> <input type="hidden" name="proposal/research_name"
			id="research_name"
			value="<x:out select="$xmlData/data/proposal/research_name" />"
			label="平台类别" /></td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>平台性质：</td>
		<td nowrap colspan="3" valign="middle"><label> <input
				type="radio" class="do " id="nature_01"
				style="vertical-align: middle;" name="nature_type" label="政府主导建设"
				value="01" /><span style="vertical-align: middle;">政府主导建设</span></label> <label>
				<input type="radio" class="do " id="nature_02"
				style="vertical-align: middle;" name="nature_type" label="社会投资建设"
				value="02" /><span style="vertical-align: middle;">社会投资建设</span>
		</label> <input type="hidden" name="proposal/nature_type_value"
			id="nature_type_value" class="required"
			value="<x:out select="$xmlData/data/proposal/nature_type_value" />"
			label="平台性质" /> <input type="hidden"
			name="proposal/nature_type_name" id="nature_type_name"
			value="<x:out select="$xmlData/data/proposal/nature_type_name" />"
			label="平台性质" /></td>
	</tr>


	<tr>
		<td align="right"><span class="color_red">*</span>平台服务范围：</td>
		<td nowrap colspan="5" valign="middle">
		<label> <input type="radio" class="do " id="service_01" style="vertical-align: middle;" name="service" label="全市" value="01"  onclick="service('01')"/><span style="vertical-align: middle;">全市</span></label> 
		<label> <input type="radio" class="do " id="service_02" style="vertical-align: middle;" name="service" label="区" value="02" onclick="service('02')"/></label><span style="vertical-align: middle;">
		<input name="proposal/service_area" label="区" type="text" class="input_css gray" disabled maxlength="100" id="service_area_02" onchange="setValue('service_area_02');" value="<x:out select="$xmlData/data/proposal/service_area" />" />区</span> 
		<label>
		<input type="radio" class="do " id="service_03" style="vertical-align: middle;" name="service" label="开发区(园区、孵化器)" value="03" onclick="service('03')"/></label><span style="vertical-align: middle;">
		<input name="proposal/dep_area" label="开发区" type="text" class="input_css  gray" disabled maxlength="100"  id="service_area_03" onchange="setValue('service_area_03');" value="<x:out select="$xmlData/data/proposal/dep_area" />" />开发区(园区、孵化器)</span>
		<label> <input type="radio" class="do " id="service_04" style="vertical-align: middle;" name="service" label="其他" value="04" onclick="service('04')" /></label><span style="vertical-align: middle;">其他</span>
		<input id="service_area_04" name="proposal/other" label="其他" type="text" class="input_css  gray" disabled maxlength="100" onchange="setValue('service_area_04');" value="<x:out select="$xmlData/data/proposal/other" />" />
		<input type="hidden" name="proposal/service_value" id="service_value" class="required" value="<x:out select="$xmlData/data/proposal/service_value" />" label="平台服务范围" /> 
		<input type="hidden" name="proposal/service_name" id="service_name" value="<x:out select="$xmlData/data/proposal/service_name" />" label="平台服务范围" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>平台主要功能：</td>
		<td colspan="3"><c:set var="function">
				<x:out select="$xmlData/data/proposal/function_value" />
			</c:set> <cpt:select id="function" key="function" className="select_width"
				value="${function}"></cpt:select> <input type="hidden"
			id="function_value" name="proposal/function_value" class="required"
			value="${function}" label="平台主要功能"> <input type="hidden"
			name="proposal/function_name"
			value="<x:out select="$xmlData/data/proposal/function_name" />">
		</td>

	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="3"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className=" required date" label="申报日期"></cpt:date>
		</td>

	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo2" cellspacing="1">
	<tr>
		<td colspan="8" class="t_bar2"><span class="color_red">*</span>平台人员构成情况</td>

	</tr>

	<tr>

		<td align="right">职工总数：</td>
		<td><input name="proposal/staff_total"  id="staff_total"   type="text" 
			class="input_css required" style="text-align: right" label="职工总数"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();setPreReserch();setPrespecial()";
			value="<x:out select="$xmlData/data/proposal/staff_total" />" /></td>
		<td align="right" colspan="2">大专以上学历者占比（%）：</td>
		<td>
		<input name="proposal/junior_college_pre_pre" 
		label="100%" id="junior_college_pre_pre" value='100' type="hidden">
		<input name="proposal/junior_college_pre"  id="junior_college_pre"   type="text" 
			class="input_css required valueLENum:junior_college_pre:100" style="text-align: right" 
			onfocus="InitInput.setNumber(this,9,2,2)" label="大专以上学历者占比"
			value="<x:out select="$xmlData/data/proposal/junior_college_pre" />" /></td>
	</tr>
	<tr>

		<td align="right">其中教职员工数：</td>
		<td><input name="proposal/teach_staff"  id="teach_staff"   type="text"  label="其中教职员工数"
			class="input_css valueGreatEqual:staff_total:teach_staff required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre()";
			value="<x:out select="$xmlData/data/proposal/teach_staff" />" /></td>
		<td align="right" colspan="2">教职员工数占比（%）：</td>
		<td><input name="proposal/teach_staff_pre"  id="teach_staff_pre"   type="text" 
			class="input_css gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)"
			value="<x:out select="$xmlData/data/proposal/teach_staff_pre" />" /></td>
	</tr>
	
	<tr>

		<td align="right">其中研发人员数：</td>
		<td><input name="proposal/reserch_staff"  id="reserch_staff"   type="text"  label="其中研发人员数"
			class="input_css valueGreatEqual:staff_total:reserch_staff required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPreReserch()";
			value="<x:out select="$xmlData/data/proposal/reserch_staff" />" /></td>
		<td align="right" colspan="2">研发人员数占比（%）：</td>
		<td><input name="proposal/reserch_staff_pre"  id="reserch_staff_pre"   type="text" 
			class="input_css gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)"
			value="<x:out select="$xmlData/data/proposal/reserch_staff_pre" />" /></td>
	</tr>
	
	<tr>

		<td align="right">其中专职技术服务人员数：</td>
		<td><input name="proposal/special_staff"  id="special_staff"   type="text"  label="其中专职技术服务人员数"
			class="input_css valueGreatEqual:staff_total:special_staff required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPrespecial()";
			value="<x:out select="$xmlData/data/proposal/special_staff" />" /></td>
		<td align="right" colspan="2">专职技术服务人员数占比（%）：</td>
		<td><input name="proposal/special_staff_pre"  id="special_staff_pre"   type="text" 
			class="input_css gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)"
			value="<x:out select="$xmlData/data/proposal/special_staff_pre" />" /></td>
	</tr>

	<tr>
		<td align="center" rowspan="2">职工学历构成</td>
		<td align="center">大专</td>
		<td align="center">本科</td>
		<td align="center">硕士</td>
		<td align="center">博士</td>
	</tr>
	<tr>

		<td >
		    <input name="proposal/edu_total" id="edu_total" type="hidden" label="职工学历构成总数" value="<x:out select="$xmlData/data/proposal/edu_total" />"/>
		    <input name="proposal/junior_college"  id="junior_college"   type="text" 
			class="input_css valueCompare:edu_total:staff_total required" style="text-align: right" label="大专"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/junior_college" />" /></td>
		<td><input name="proposal/undergraduate" id="undergraduate" type="text" 
			class="input_css required" style="text-align: right" label="本科"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/undergraduate" />" /></td>
		<td ><input name="proposal/master" id="master" type="text" 
			class="input_css required" style="text-align: right" label="硕士"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/master" />" /></td>
		<td ><input name="proposal/doctor" id="doctor"  type="text" 
			class="input_css required" style="text-align: right" label="博士"
			onfocus="InitInput.setNumber(this,9,0,0)"
		    onchange="countNum('','junior_college,undergraduate,master,doctor','edu_total');"
			value="<x:out select="$xmlData/data/proposal/doctor" />" /></td>
	</tr>

	<tr>
		<td align="center" rowspan="2">职工职称构成</td>
		<td align="center">助理级</td>
		<td align="center">中级</td>
		<td align="center">高级</td>
		<td align="center">&nbsp;</td>
	</tr>
	<tr>

		<td >
		<input name="proposal/assistant_total" id="assistant_total" label="职工职称构成总数" type="hidden" value="<x:out select="$xmlData/data/proposal/assistant_total" />"/>
		<input name="proposal/assistant_level"  id="assistant_level"   type="text" 
			class="input_css valueCompare:assistant_total:staff_total required" style="text-align: right" label="助理级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/assistant_level" />" /></td>
		<td ><input name="proposal/middle_level"  id="middle_level"   type="text" 
			class="input_css required" style="text-align: right" label="中级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/middle_level" />" /></td>
		<td ><input name="proposal/high_level"  id="high_level"   type="text" 
			class="input_css required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="高级"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/high_level" />" /></td>
		<td align="center">&nbsp;</td>
	</tr>

</table>
<div class="t_bar"><span class="color_red">*</span>平台主要设备设施</div>
<table  id="tblEuipments" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="60%">设备名称</th> 
				        <th class="TblHead" align="center"  width="15%">数量（台/套）</th> 
						<th class="TblHead" align="center"  width="15%">金额（万元）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipments" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments|euipment[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="euipments|euipment[0]|name" label="设备名称" class=" input_text required" maxlength="50" style="width:80%"/>
						</td>
						
						<td>
							<input type="text" name="euipments|euipment[0]|amount" label="数量"  onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%" class=" input_text required" />
						</td> 
						<td>
							<input type="text" name="euipments|euipment[0]|money" label="金额"  onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%" class=" input_text required" />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/euipments/euipment" var="euipment">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selEuipments" >
						</td>
						<td align="center">&nbsp;
							<span name="euipments/euipment[${flag}${index}]@seq_no" ><x:out select="$euipment/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="euipments/euipment[${flag}${index}]/name"  label="设备名称" style="width:80%"   class=" input_text required" value="<x:out select="$euipment/name" />" maxlength="50"/>
						</td>
						
						<td >
							<input type="text" name="euipments/euipment[${flag}${index}]/amount" label="数量" onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$euipment/amount" />"/>
						</td> 
						<td >
							<input type="text" name="euipments/euipment[${flag}${index}]/money" label="金额"  onfocus="InitInput.setNumber(this,7,4,2)"   style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$euipment/money" />"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblEuipments');try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblEuipments','selEuipments')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblEuipments','selEuipments')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblEuipments','平台主要设备设施');">
					</td></tr>
	</table>	



<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo4" cellspacing="1">

	<tr>
		<td colspan="6" class="t_bar2">申报项目资金情况（金额单位：万元）</td>

	</tr>
	<tr>
		<td align="right">项目类别：</td>
		<td><x:out select="$xmlData/data/proposal/grant_name" /></td>
		<td align="right">申请金额：</td>
		<td colspan="3"><input name="proposal/sqje" id="sqje"
			label="申请金额" type="text" 
			class="input_css  gray" disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/sqje" />" /></td>

	</tr>
	<tr>
		<td align="right">项目计划投入总额：</td>
		<td colspan="1"><input name="proposal/investment_budget" id="investment_budget"
			 label="项目计划投入总额" type="text" class="input_css  gray" disabled
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right">上年度已完成投资：</td>
		<td colspan="3"><input name="proposal/finsh_budget" id="finsh_budget"
			 label="上年度已完成投资" type="text" 
			class="input_css  gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>

	<tr>
		<td align="right">支持方式：</td>
		<td><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>

		<td align="right">资金级次：</td>
		<td colspan="3"><span name="proposal/fund_level">市级</span></td>
	</tr>
	<tr>
		<td align="right" nowrap>归口管理部门：</td>
		<td><span name="proposal/org_name">无锡市商务局</span></td>
		<td align="right">管理类别：</td>
		<td colspan="3"><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /></span></td>

	</tr>
	<%-- <tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="5"><c:set var="category">
				<x:out select="$xmlData/data/proposal/category_value" />
			</c:set> <cpt:checkbox key="category" name="category" repeatColumn="9"
				style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="category_value"
			name="proposal/category_value" class="required" value="${category}"
			label="项目所属类别"> <input type="hidden"
			name="proposal/category_name"
			value="<x:out select="$xmlData/data/proposal/category_name" />">
		</td>
	</tr> --%>
	<tr style="display: none">
		<td></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5"><c:set var="industry">
				<x:out select="$xmlData/data/proposal/industry_value" />
			</c:set> <cpt:checkbox key="industry" name="industry" repeatColumn="7"
				style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value"
			name="proposal/industry_value" class="required" value="${industry}"
			label="项目所属产业"> <input type="hidden"
			name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
		<td align="right">功能分类：</td>
		<td colspan="5"><span name="proposal/grant_function"><x:out
					select="$xmlData/data/proposal/grant_function" /></span></td>

	</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td class="t_bar2">申请资助依据条款</td>

	</tr>
	<tr>
		<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
			name="proposal/policy_foundation"><x:out
					select="$xmlData/data/proposal/policy_foundation" /></span>
		</td>
	</tr>
</table>
<br />


<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="org1">

	<tr>
		<td class="t_bar2" colspan="4">其他合作单位信息</td>

	</tr>
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息1</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1"
			style="display: none">*</span>单位名称：</td>
		<td colspan="3"><input name="proposal/org_name1" label="合作单位信息1"
			type="text" class="input_css " onchange="cydw('org1');"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/org_name1" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2"
			style="display: none">*</span>单位地址：</td>
		<td colspan="3"><input name="proposal/address1"
			label="合作单位信息1-->单位地址" type="text" class="input_css "
			onchange="cydw('org1');" style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address1" />" /></td>
	</tr>
	<tr>
		<td width="14%" align="right"><span class="color_red" id="color3"
			style="display: none">*</span>注册类型：</td>
		<td width="38%" align="left" colspan="1"><c:set var="nature1">{'id':'<x:out
					select="$xmlData/data/proposal/nature1_code" />','name':'<x:out
					select="$xmlData/data/proposal/nature1_name" />'}</c:set> <cpt:tree
				key="nature_type" cacheable="false" className="hn_iuput_kuang gray"
				readonly="true" value="${nature1}" label="合作单位信息1-->注册类型"
				id="nature1" showPattern="current" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValue2" /> <input
			id="nature1_code" type="hidden" name="proposal/nature1_code" class=""
			label="合作单位信息1-->注册类型"
			value="<x:out select="$xmlData/data/proposal/nature1_code" />" /> <input
			id="nature1_name" type="hidden" name="proposal/nature1_name"
			value="<x:out select="$xmlData/data/proposal/nature1_name" />" /></td>
		<td align="right"><span class="color_red" id="color4"
			style="display: none">*</span>组织机构代码：</td>
		<td><input name="proposal/org_no1" label="合作单位信息1-->组织机构代码"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/org_no1" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color5"
			style="display: none">*</span>联系人：</td>
		<td><input name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_name1" />" /></td>
		<td align="right"><span class="color_red" id="color6"
			style="display: none">*</span>电话：</td>
		<td><input name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_tel1" />" /></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="org2">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息2</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1"
			style="display: none">*</span>单位名称：</td>
		<td colspan="3"><input name="proposal/org_name2" label="合作单位信息2-->单位名称"
			type="text" required class="input_css " onchange="cydw('org2');"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/org_name2" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2"
			style="display: none">*</span>单位地址：</td>
		<td colspan="3"><input name="proposal/address2"
			label="合作单位信息2-->单位地址" type="text" required class="input_css "
			onchange="cydw('org2');" style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address2" />" /></td>
	</tr>
	<tr>
		<td width="14%" align="right"><span class="color_red" id="color3"
			style="display: none">*</span>注册类型：</td>
		<td width="38%" align="left" colspan="1"><c:set var="nature2">{'id':'<x:out
					select="$xmlData/data/proposal/nature2_code" />','name':'<x:out
					select="$xmlData/data/proposal/nature2_name" />'}</c:set> <cpt:tree
				key="nature_type" cacheable="false" className="hn_iuput_kuang gray"
				readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
				id="nature2" showPattern="current" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValue2" /> <input
			id="nature2_code" type="hidden" name="proposal/nature2_code" class=""
			label="合作单位信息2-->注册类型"
			value="<x:out select="$xmlData/data/proposal/nature2_code" />" /> <input
			id="nature2_name" type="hidden" name="proposal/nature2_name"
			value="<x:out select="$xmlData/data/proposal/nature2_name" />" /></td>
		<td align="right"><span class="color_red" id="color4"
			style="display: none">*</span>组织机构代码：</td>
		<td><input name="proposal/org_no2" label="合作单位信息2-->组织机构代码"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/org_no2" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color5"
			style="display: none">*</span>联系人：</td>
		<td><input name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_name2" />" /></td>
		<td align="right"><span class="color_red" id="color6"
			style="display: none">*</span>电话：</td>
		<td><input name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_tel2" />" /></td>
	</tr>
</table>
<br />


<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="basicInfo5">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input name="proposal/contact_psn_cname" label="项目联系人"
			type="text" required class="input_css required" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input name="proposal/contact_psn_tel" label="联系电话"
			type="text" required class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系手机：</td>
		<td><input name="proposal/contact_psn_mobile" label="联系手机"
			type="text" required maxlength="11" required
			class="input_css required mobile" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
		<td align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td><input name="proposal/contact_psn_email" label="电子邮箱"
			type="text" required class="input_css required email" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" />
		</td>
	</tr>
	<tr>
		<td align="right">项目负责人：</td>
		<td><span name="proposal/fzr_psnname"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td align="right">联系电话：</td>
		<td><span name="proposal/fzr_tel"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td align="right">联系手机：</td>
		<td><span name="proposal/fzr_mobile"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td align="right">电子邮箱：</td>
		<td><span name="proposal/fzr_mail"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>


</table>

<script type="text/javascript">
$(function(){
	cydw('org1');
	cydw('org2');
	service($("#service_value").val());
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
	
}
function setPreReserch(){
	var  reserch_staff=$("#reserch_staff").val();
    var staff_total=$("#staff_total").val();
    $("#reserch_staff_pre").val(formatVal(reserch_staff*100/staff_total));
	
}

function setPrespecial(){
	var  special_staff=$("#special_staff").val();
	var staff_total=$("#staff_total").val();
    $("#special_staff_pre").val(formatVal(special_staff*100/staff_total));
	
}

function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}
function setValue(id){
	if("service_area_02" == id){
		$("#service_name").val($("#"+id).val()+"区");
	}
	if("service_area_03" == id){
		$("#service_name").val($("#"+id).val()+"开发区");
	}
	if("service_area_04" == id){
		$("#service_name").val("其他："+$("#"+id).val());
	}
}

function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
</script>


